package com.hxd.otc.module.login.bean;

import com.hxd.otc.common.enums.RoleTypeEnum;

import java.io.Serializable;
import java.util.List;

/**
 * 作  者 :  胡庆岭
 * 时  间 :  2018/6/12 16:47
 * 描  述 :  ${登录结果返回 bean}
 */
public class AccountBean implements Serializable {
    public String rongColudToken;//融云token

    //————————————————————————————————————以下为otc参数————————————————

    protected String id;//用户id
    protected String token;// token

    private int userType;
    private boolean googleAuth;//是否谷歌认证过
    private String realName;//真实姓名
    private int cardStatus;//实名认证状态值
    private int cardLevel;//实名等级 0：未设置 ， 1： V1 认证 ，2：V2 ：认证
    private String mobile;//手机号
    private String username;
    private String nickName;
    private String mail;//邮箱
    private String alipayNo;//支付宝号
    private String alipayQrcodeId;//支付宝二维码图片id
    private String wechatQrcodeId;//微信二维码图片id
    private String wechatNo;//微信号
    private String loginIp;//登录ip
    private String inviteCode;//邀请码
    private String referId;
    private String exPassword;//"true":用户已经设置交易密码；否则还没有设置
    private String exValidType;//"1"：谷歌验证；"3"：短信验证；"4":"邮箱验证"，其他："用户还没有设置"
    private String tag;
    private boolean enabled;
    private boolean accountNonLocked;//账号未锁定
    private String loginSource;//登录源
    private boolean accountNonExpired;
    private boolean credentialsNonExpired;
    private List<?> authorities;
    private String csUsername;//环信账号
    private String csPass;//环信密码
    private int isRegisteredCs;// 0-客服系统未注册 1-已注册
    private String role;//-1 普通用户，0普通广告商，1无感支付广告商

    public String getRongColudToken() {
        return rongColudToken;
    }

    public void setRongColudToken(String rongColudToken) {
        this.rongColudToken = rongColudToken;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public int getUserType() {
        return userType;
    }

    public void setUserType(int userType) {
        this.userType = userType;
    }

    public boolean isGoogleAuth() {
        return googleAuth;
    }

    public void setGoogleAuth(boolean googleAuth) {
        this.googleAuth = googleAuth;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public int getCardStatus() {
        return cardStatus;
    }

    public void setCardStatus(int cardStatus) {
        this.cardStatus = cardStatus;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getUsername() {
        return username;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getMail() {
        return mail;
    }

    public void setMail(String mail) {
        this.mail = mail;
    }

    public String getAlipayNo() {
        return alipayNo;
    }

    public void setAlipayNo(String alipayNo) {
        this.alipayNo = alipayNo;
    }

    public String getAlipayQrcodeId() {
        return alipayQrcodeId;
    }

    public void setAlipayQrcodeId(String alipayQrcodeId) {
        this.alipayQrcodeId = alipayQrcodeId;
    }

    public String getWechatQrcodeId() {
        return wechatQrcodeId;
    }

    public void setWechatQrcodeId(String wechatQrcodeId) {
        this.wechatQrcodeId = wechatQrcodeId;
    }

    public String getWechatNo() {
        return wechatNo;
    }

    public void setWechatNo(String wechatNo) {
        this.wechatNo = wechatNo;
    }

    public String getLoginIp() {
        return loginIp;
    }

    public void setLoginIp(String loginIp) {
        this.loginIp = loginIp;
    }

    public String getInviteCode() {
        return inviteCode;
    }

    public void setInviteCode(String inviteCode) {
        this.inviteCode = inviteCode;
    }

    public String getReferId() {
        return referId;
    }

    public void setReferId(String referId) {
        this.referId = referId;
    }

    public String getExPassword() {
        return exPassword;
    }

    public void setExPassword(String exPassword) {
        this.exPassword = exPassword;
    }

    public String getExValidType() {
        return exValidType;
    }

    public void setExValidType(String exValidType) {
        this.exValidType = exValidType;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public boolean isAccountNonLocked() {
        return accountNonLocked;
    }

    public void setAccountNonLocked(boolean accountNonLocked) {
        this.accountNonLocked = accountNonLocked;
    }

    public String getLoginSource() {
        return loginSource;
    }

    public void setLoginSource(String loginSource) {
        this.loginSource = loginSource;
    }

    public boolean isAccountNonExpired() {
        return accountNonExpired;
    }

    public void setAccountNonExpired(boolean accountNonExpired) {
        this.accountNonExpired = accountNonExpired;
    }

    public boolean isCredentialsNonExpired() {
        return credentialsNonExpired;
    }

    public void setCredentialsNonExpired(boolean credentialsNonExpired) {
        this.credentialsNonExpired = credentialsNonExpired;
    }

    public List<?> getAuthorities() {
        return authorities;
    }

    public void setAuthorities(List<?> authorities) {
        this.authorities = authorities;
    }

    public int getCardLevel() {
        return cardLevel;
    }

    public void setCardLevel(int cardLevel) {
        this.cardLevel = cardLevel;
    }

    public String getCsUsername() {
        return csUsername;
    }

    public void setCsUsername(String csUsername) {
        this.csUsername = csUsername;
    }

    public String getCsPass() {
        return csPass;
    }

    public void setCsPass(String csPass) {
        this.csPass = csPass;
    }

    public int getIsRegisteredCs() {
        return isRegisteredCs;
    }

    public void setIsRegisteredCs(int isRegisteredCs) {
        this.isRegisteredCs = isRegisteredCs;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public RoleTypeEnum getRoleType() {
        return RoleTypeEnum.getInstance(role);
    }

    @Override
    public String toString() {
        return "AccountBean{" +
                "rongColudToken='" + rongColudToken + '\'' +
                ", id='" + id + '\'' +
                ", token='" + token + '\'' +
                ", userType=" + userType +
                ", googleAuth=" + googleAuth +
                ", realName='" + realName + '\'' +
                ", cardStatus=" + cardStatus +
                ", cardLevel=" + cardLevel +
                ", mobile='" + mobile + '\'' +
                ", username='" + username + '\'' +
                ", nickName='" + nickName + '\'' +
                ", mail='" + mail + '\'' +
                ", alipayNo='" + alipayNo + '\'' +
                ", alipayQrcodeId='" + alipayQrcodeId + '\'' +
                ", wechatQrcodeId='" + wechatQrcodeId + '\'' +
                ", wechatNo='" + wechatNo + '\'' +
                ", loginIp='" + loginIp + '\'' +
                ", inviteCode='" + inviteCode + '\'' +
                ", referId='" + referId + '\'' +
                ", exPassword='" + exPassword + '\'' +
                ", exValidType='" + exValidType + '\'' +
                ", tag='" + tag + '\'' +
                ", enabled=" + enabled +
                ", accountNonLocked=" + accountNonLocked +
                ", loginSource='" + loginSource + '\'' +
                ", accountNonExpired=" + accountNonExpired +
                ", credentialsNonExpired=" + credentialsNonExpired +
                ", authorities=" + authorities +
                ", csUsername='" + csUsername + '\'' +
                ", csPass='" + csPass + '\'' +
                ", isRegisteredCs='" + isRegisteredCs + '\'' +
                ", role='" + role + '\'' +
                '}';
    }
}
